package com.soft.collateral.mapper;

import com.soft.collateral.entity.Edger;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 押品台账表 Mapper 接口
 * </p>
 *
 * @author liubin
 * @since 2025-08-03
 */
public interface EdgerMapper extends BaseMapper<Edger> {

    @Select("SELECT * FROM edger WHERE collateral_id = #{collateralId}")
    Edger findByCollateralId(@Param("collateralId") Integer collateralId);
}
